package top.tenebrous.yzl.utils;

import cn.hutool.crypto.asymmetric.KeyType;
import cn.hutool.crypto.asymmetric.RSA;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.codec.binary.Base64;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author hrz
 */
public class SignActUtil {

    public final static String PRIVATE_KEY = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAIzmjwZn2vN5aYVsTh0dU04LfiBO\n" +
            "j94GKoBOUe+7bAHbkmmPyrFeRQhB4Iruu9pBTT2d+JriVZRxWWRsJ30/xfmaMdoT8HPObCGzs+kY\n" +
            "aGH6nYyvR0gQOYiqWkC9/F6UAQO57iKtOkMXy0kFHqhcZPly02t/GM5dLFfBIZt9YxRrAgMBAAEC\n" +
            "gYBGvMF1T9KGhZ/KUjNtPnnCJtbtVUO5DZNs0uUj3A4/aIK66Gu0XEV//cLDPVOmIT6r/pD/AT5B\n" +
            "xh5A4mN45/l1syXuIt4EvQ40OWYq09HqAFYbfDmEhQ0SZiOBao0wZqUhFZ6HkmM2g8rm8zX35kHx\n" +
            "8UsJIwJwHJrrDgq98WeFIQJBAN7XlCpkf6plLVm3gYn67cpmRRdQt95sgVKXvP+5ZrBZHYNedNEr\n" +
            "PxwpZAW4b39ONk9fitQNxKYFMP+7rldcWKMCQQCh3bHDC/LvJG7udDGy1ds/0rk4WKgDuhRHy2tP\n" +
            "uXnr3D/zHw1iOP47pA1BB62eaLD3/2m7drLEF4vFuc1fACmZAkA1wgfqWig6MQJJvG0xnikzRIyy\n" +
            "XTSeIcro49YiUtWlATqPcH/53dbxskKA5sdvDK0pZMEW+uNPsbzqVJpwVMTFAkAD8mHpPZtY1WyX\n" +
            "B+JGWAyWi87UXuUJ4jmoXn9pXD5qz94HUZSD9pvMXH2uPj+vgyH9ig7L8WL+gQx5b8RgMqLRAkEA\n" +
            "2oxg7us4D1eLw8IoM/F1l3YApfffWKm4c78moKYEZDhDJOT0cAQoeCugAnoJ4BsiXjzn6iZo9BAv\n" +
            "NCGzxQq9TA==";


    public final static String PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCM5o8GZ9rzeWmFbE4dHVNOC34gTo/eBiqATlHv\n" +
            "u2wB25Jpj8qxXkUIQeCK7rvaQU09nfia4lWUcVlkbCd9P8X5mjHaE/Bzzmwhs7PpGGhh+p2Mr0dI\n" +
            "EDmIqlpAvfxelAEDue4irTpDF8tJBR6oXGT5ctNrfxjOXSxXwSGbfWMUawIDAQAB";


    public final static String PUBLIC_KEY_PRD = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCSQvxyvYqRB74ltHUWvWUSW9KsCc/Idd+HWXea\n" +
            "p+740J7+ifsvwvddjj11XsbEyyCNyMSPSI0kuZuex2g2Af5m+OoBb1dG4RkiJ4stsDdfv747s48q\n" +
            "IKff52qPd90rcRQfxezGGFlO020BvxnKqDZkJ+Hchx3hGSEmRUxt8KfgCQIDAQAB";

}
